'use strict';
import path from 'path'
// 判断是否是数组
export function isObject(obj) {
  return Object.prototype.toString.call(obj) == '[object Object]'
}
// 处理macOS和windows路径
export function formatPath(p) {
  if (p) {
    const sep = path.sep
    if (sep === '\\') {
      return p.replace(/\\/g, '/')
    }
  }
  return path
}
